//
//  JMeauView.h
//  jhf
//
//  Created by 计海峰 on 2017/11/23 14:05:37.
//  Copyright © 2017年 计海峰. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "JDefine.h"

#define jPageControlHeight 12

@class JMeauModel;
@interface JMeauView : UIView

//cell中图片大小  取长宽短的一边计算  默认0.5
@property (nonatomic, assign) CGFloat imageRatio;

//cell中图片大小 圆角程度
@property (nonatomic, assign) CGFloat cornerRadiusNum;

//cell中图片 和文字之间的距离 默认4
@property (nonatomic, assign) CGFloat spaceWithImageAndTitle;

//文字大小
@property (nonatomic, assign) CGFloat titleFont;

//文本颜色 默认黑色
@property (nonatomic, strong) UIColor *titleTextColor;

//图文位置  0 顶部  1 左侧  2 底部  3右侧
@property (nonatomic, assign) NSInteger imageLocation;

//imageView  距离边框 位置   当imageLocation为 1和3有效 默认4
@property (nonatomic, assign) CGFloat leftRight;

//文本颜色 当前致使颜色
@property (nonatomic, strong) UIColor *currentPageIndicatorTintColor;

//文本颜色 其它
@property (nonatomic, strong) UIColor *pageIndicatorTintColor;

//block数据
@property (nonatomic, copy) BlockValue block;

//数据源
@property (nonatomic,strong) NSMutableArray <JMeauModel *>*dataArray;

//横向数据几个  默认2
@property (nonatomic,assign) NSInteger horizonNum;

//纵向数据几个  默认4和5
@property (nonatomic,assign) NSInteger verticalNum;

//加载数据 添加前调用改方法
- (void)show;

//点击回调
- (void)handleBlock:(BlockValue)block;

@end


#pragma mark 🍙 Model 显示的数据模型
@interface JMeauModel : NSObject

@property (nonatomic,copy) NSString *imageUrl;

@property (nonatomic,copy) NSString *titleText;

@property (nonatomic,copy) NSString *imageName;

@property (nonatomic,strong) id extra;

@property (nonatomic,assign) BOOL isSelect;

@property (nonatomic,assign) NSInteger type;

@property (nonatomic,copy) NSString *method;

@property (nonatomic,strong) NSMutableDictionary *userInfo;


@end
